package com.bishe.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * (WzInfo)表实体类
 *
 * @author makejava
 * @since 2024-03-04 00:02:38
 */
@TableName(value = "wz_info")
@ApiModel("物资信息")
@Data
public class WzInfo extends Model<WzInfo> {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("关联id")
    private String uid;
    //物资名
    @ApiModelProperty("物资名")
    private String name;

    @ApiModelProperty("物资数量")
    private Integer wzNum;

    @ApiModelProperty("物资出库数量")
    private Integer wzCkNum;

    @ApiModelProperty("物资剩余数量")
    private Integer wzRemaining;

    //物资类别
    @ApiModelProperty("物资类别")
    private String type;
    //重量
    @ApiModelProperty("重量")
    private Object weight;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    //
    @ApiModelProperty("是否完好")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty("文件信息")
    private FileInfo fileInfo;

    @TableField(exist = false)
    @ApiModelProperty("仓库名")
    private String warehouseName;

    @ApiModelProperty("文件关联id")
    private String dataId;

    @ApiModelProperty("")
    private String createBy;

    private String address;

    @TableField(exist = false)
    @ApiModelProperty("操作人")
    private String createName;

}

